package com.demo.task.config

import com.demo.task.bean.PlanBean
import com.tencent.mmkv.MMKV

object ConfigUtils {
    private val mmkv = MMKV.defaultMMKV()

    var time: String
        get() {
            return mmkv.decodeString("time").orEmpty()
        }
        set(value) {
            mmkv.encode("time", value)
        }

    var control: PlanBean?
        get() {
            return mmkv.decodeParcelable("control", PlanBean::class.java)
        }
        set(value) {
            mmkv.encode("control", value)
        }
}